package Com.Hupochuan.Vo;

import java.sql.Timestamp;

import Com.Hupochuan.Uil.Util.TimeStringUtil;

/*
 * 翻盖面板 FlipPanel
 */
public class FlipPanel {
	//					字段名			字段类型		中文解析		缺省(Default)	备注
	private Long 		id;//			INT			ID			AUTO_INCREMENT	PRIMARY KEY
	private String 		name;//			VARCHAR(50)	名称			(空字符串)	
	private String 		logoPath;//		VARCHAR(50)	海报图片路径	(空字符串)	
	private String 		color;//		VARCHAR(50)	颜色			(空字符串)
	private String 		url;//			VARCHAR(50)	网址			(空字符串)	
	private Float 		weight;//		FLOAT		权重			0
	private Timestamp 	updateTime;//	DATETIME	更新时间		No default
	
	private String 		tempImgName="";//	临时图片名 用于存储数据时使用
	
	/*
	 * 获得转换的时间字符串
	 */
	public String getUpdateTimeString() {
		return TimeStringUtil.getObject().timeToTimeString(this.updateTime);
	}
	
	/*
	 * 参数注入
	 */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getLogoPath() {
		return logoPath;
	}
	public void setLogoPath(String logoPath) {
		this.logoPath = logoPath;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Float getWeight() {
		return weight;
	}
	public void setWeight(Float weight) {
		this.weight = weight;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Timestamp getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	public String getTempImgName() {
		return tempImgName;
	}

	public void setTempImgName(String tempImgName) {
		this.tempImgName = tempImgName;
	}
}
